<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script src="./index.js"></script>
<script>
	// 串联多个任务(链式调用)
	new Promise(function (resolve, reject) {
		resolve(1);
	}).then(value => {
		console.log(value);// 1
	}).then(value => {
		console.log(value);// undefined
	})

</script>

</html>